package com.xinminda.dcf.ui.news.model;


import com.xinminda.dcf.api.ApiManage;
import com.xinminda.dcf.base.baserx.RxHelper;
import com.xinminda.dcf.bean.ColumnsBean;
import com.xinminda.dcf.test.RequestParams;
import com.xinminda.dcf.ui.news.contract.NewsMainContract;
import java.util.List;
import rx.Observable;

public class NewMainModel implements NewsMainContract.Model{
    @Override
    public Observable<List<ColumnsBean>> lodeMineNewsChannels() {

        return ApiManage.getInstence().getApiService().getNewChannel(RequestParams.getHeader("news.columnList"))
                .compose(RxHelper.<List<ColumnsBean>>handleResult());
    }
}
